package com.tc.dispatch.csservice.algorithm.finder;

import java.util.HashSet;
import java.util.Set;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2008</p>
 * <p>Company: zju</p>
 * @author jakcyjia
 * @version 1.0
 */

public class GSFinder implements Finder {
  public GSFinder() {
  }
  public String[] findUniqueString(String[] input) {
    Set strSet=new HashSet();
    for(int i=0;i<input.length;i++)
    {
      strSet.add(input[i]);
    }
    Object[] obj=strSet.toArray();
    String[] ret=new String[obj.length];
    for(int i=0;i<obj.length;i++)
      ret[i]=(String)obj[i];
    return ret;
  }

}